Skip to content

fix(spec,test): unblock the 19 Version PR: open the major-19 registry regions, parse prerelease versions in the MCP save test, key the objectui pin claim on the spec major - #37557

Queued
objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/project-thread-sylqxb-i37549
Queued

objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/project-thread-sylqxb-i37549

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #37549

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:发版流程里,版本号升到 19 之后,有三处会红,这里一起修掉:迁移登记表的生成不会再拒收第 19 版的下线条目;MCP 保存草稿的一条测试不再把预发布版本号(19.0.0-next.0)读坏;界面仓的版本说法检查不再写死 18。"版本发布"那个 PR 的核心测试和界面测试可以变绿。
  • 为什么做:给发第一个 19 预发布版(next 渠道)清掉阻断。版本 PR 的必过检查一直是红的,现在没法合并。
  • 出错会怎样:只给模板加了两个空区段,另外改了三份测试;不改任何已发布行为。出问题直接撤回这个 PR 即可。
  • 要你做什么:无。

What changes

  • packages/spec/src/migrations/registry.ts.template: opens an empty retired-key:19 region in RETIRED_KEYS_BY_MAJOR and an empty retired-def:19 region in RETIRED_DEFS_BY_MAJOR, each placed and shaped like its major-18 sibling. semantic:19 and step19 already existed, so the migration-step side needed nothing.
  • retired-def:19 goes beyond the card's wording, as an in-place fix of the same defect class. build-schemas.ts prescribes new retired-def entry files under the same CURRENT_MAJOR (renderNewEntryFiles, used for both kinds). So the first whole-def removal on the 19 tree would have hit the same generator refusal. Same file, same gate family, same mechanical fix.
  • scripts/build-migration-registry.ts needs no change. Its lines ~422–441 are --self-test fixtures, not a region list: the generator discovers regions from the template's markers.
  • Pin (packages/spec/scripts/build-migration-registry-entry.test.ts, new describe): every kind in KINDS has an open and close marker in the template for each of two majors, the spec package's major (what build-schemas.ts registers new entries under) and PROTOCOL_MAJOR. On main today these are 18 and 19, so the pin reds on main before the fix and names the missing region and the major.
    • Why PROTOCOL_MAJOR and not "spec major + 1": the protocol major moves first, on main (it reads 19 while the package is still 18.6.0). It is the leading signal for the next major.
    • "spec major + 1" would also red the Version PR tree itself (19 + 1 = 20), unless a major-20 region were opened now.
  • Item 2 (seat-amended scope, card spec: the registry template has no <os-generated retired-key:19> region, so Test Core fails on the 19.0.0-next.0 version tree and the first 19 pre-release cannot merge #37549): packages/runtime/src/domains/mcp-authoring.test.ts. The [#34774] describe parsed SERVER with split('.'), so on the Version PR tree (19.0.0-next.0) the patch field was 0-next and the built version was 19.0.NaN, which the door refuses as not SemVer. It now parses with SEMVER_2_0_0_VERSION_PATTERN from @objectstack/spec/kernel, the grammar the door itself judges with, and drops the prerelease from the versions it builds. A new case declares the server's own version verbatim and ${major}.${minor}.0-next.0, and asserts both save byte-identically to no declaration. Test-only; @objectstack/runtime ships dist alone, so no runtime changeset is owed.
  • Item 3 (seat-amended scope): ui/scripts/__tests__/doc-version-claims.test.ts. The skills/objectui/SKILL.md KNOWN_CLAIMS row was the literal @objectstack/spec 18.x. It is now keyed on SPEC_MAJOR, read from packages/spec/package.json under workspaceRoot(). The literal in the skill can't go, because the root check-skill-compatibility-version.mjs requires the pin and rewrites it with the version step. So skills/** is not touched, and the PR stays off Tier H.
  • Changeset .changeset/37549-retired-key-19-region.md (patch; the template renders into the shipped registry.ts).

Tests

Pin reds on the pre-fix template (origin/main 1af67b2 template restored, then put back)
× opens and closes `retired-key:19`
× opens and closes `retired-def:19`
AssertionError: src/migrations/registry.ts.template has no `os-generated retired-key:19` region, but major 19 is current (spec package 18.6.0, PROTOCOL_VERSION major 19); an entry registered there is refused by gen:migration-registry. ...
Tests  2 failed | 8 passed (10)
os-verify-lock: VERDICT command-exit 1
Version tree: spec temporarily at 19.0.0-next.0 (not committed)

pnpm gen:migration-registry && pnpm exec vitest run --maxWorkers=2 scripts/build-migration-registry-entry.test.ts scripts/build-schemas-check-mode.retired-keys.test.ts (both projects), with packages/spec/package.json version set to 19.0.0-next.0. The run includes "the printed route registers: write exactly the files check (b) names, run the generator, and (b) is silent", the case that fails on #35129.

Test Files  2 passed (2)
     Tests  20 passed (20)
os-verify-lock: VERDICT command-exit 0

The version was restored to 18.6.0 afterwards; git status was clean apart from the intended diff.

18.6.0 tree: same two files
Test Files  2 passed (2)
     Tests  23 passed (23)
os-verify-lock: VERDICT command-exit 0
Items 2 and 3 on the Version tree (spec at 19.0.0-next.0 and the objectui skill pin at 19.x, both temporary, restored after)
runtime mcp-authoring.test.ts      Tests 57 passed (57)
ui doc-version-claims.test.ts      Tests 29 passed (29)

Ablation on the same tree with the origin/main 1af67b2 versions of the two tests: runtime 1 failed | 55 passed (the SemVer form (e.g. 18.6.0) case), ui 2 failed (skills/objectui/SKILL.md :: @objectstack/spec 18.x), matching #35129's CI failures. On the 18.6.0 tree: runtime 57/57, ui 29/29. ui scripts/ suite at the final head: 172 passed | 2 skipped files, 5130 passed tests.

Spec package, local project, at 2fd0411: `pnpm --filter @objectstack/spec test` and `pnpm typecheck`
Test Files  899 passed (899)
     Tests  28505 passed | 1 todo (28506)
os-verify-lock: VERDICT command-exit 0
typecheck (tsc + check:scripts-typecheck + check:test-typecheck): VERDICT command-exit 0

test:repo (the vitest repo project) belongs to CI's Test Core. Only its one touched-path file, build-schemas-check-mode.retired-keys.test.ts, was run locally (above).

Acceptance notes

Body amended by the seat (repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA) to cover the three items the card's scope grew to; the dev report on #37549 (7194227076) carries the full evidence.

Verification

Two-minute check: pnpm --filter @objectstack/spec exec vitest run --project local --maxWorkers=2 scripts/build-migration-registry-entry.test.ts, expected to show Tests 10 passed (10). Then set the spec version to 19.0.0-next.0 and run scripts/build-schemas-check-mode.retired-keys.test.ts, which should also be green.

Read first: (1) the two new template regions; (2) the pin's choice of majors (spec package major and PROTOCOL_MAJOR).

Local gate subset at 2fd0411: derived by node scripts/pm/dispatch-gates.mjs --commands. Verdicts are in the dev report on the card. check:doc-formula-expressions is NOT MEASURED locally (PREREQUISITE NOT MET: @objectstack/formula and @objectstack/lint are not built in this worktree); CI runs it. The full farm belongs to CI.


Generated by Claude Code

…he registry template

Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA
Co-authored-by: Claude <noreply@anthropic.com>
…majors; changeset

Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 1 changed file(s) yielded no anchor (packages/spec/src/migrations/registry.ts.template), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/src/migrations/registry.ts.template) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c385d3bd1642861a1cd681d71b78655ec1f75d7a → packageMentionDocs.

…ill claim on the spec major

Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m and removed size/s labels Nov 26, 2026
@objectstack-fleet objectstack-fleet Bot changed the title fix(spec): open the major-19 retired-key and retired-def regions in the migration registry template fix(spec,test): unblock the 19 Version PR: open the major-19 registry regions, parse prerelease versions in the MCP save test, key the objectui pin claim on the spec major Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0e5473f595dea76b78f2fd7704cb4cedccefb427
Local-runs: none
Scope: packages/spec/src/migrations/registry.ts.template + packages/spec/scripts/build-migration-registry-entry.test.ts

Inputs, read 2026-11-26T14:16Z: card #37549 (body and its 5 comments), PR #37557 (body, 5 files, net diff against main from merge-base 1af67b26cd), and the 73 check-runs on the head: 61 success, 12 skipped, none failed, none pending. main is 11 commits past the merge-base and touches none of the files read below. The other three files of the diff (packages/runtime/src/domains/mcp-authoring.test.ts, ui/scripts/__tests__/doc-version-claims.test.ts, the changeset) are the lane seat's ACCEPT at TIER_DEFAULT; they were read for ①②③ and are not judged in ④.

① Derived judgments

  • Authorable accept set: unchanged. Right. No Zod schema, error code, authorable-surface/ baseline or json-schema.manifest/ line is in the diff. The two template hunks add comment lines and two empty array literals.
  • Published surface of @objectstack/spec/migrations: declared types unchanged, values gain one own key each. Right, with the precise wording. RETIRED_KEYS_BY_MAJOR and RETIRED_DEFS_BY_MAJOR keep their declared type (a readonly record of number to readonly string array), and api-surface/migrations.json and export-origins/migrations.json are not in the diff. The generated value of each table gains 19: [], so Object.keys() on either now lists 19. The PR body's "no exported value or key changes shape" is true of the type and loose about the key set. No reader depends on the key set: at this head every reader of the two tables outside test files is in packages/spec/scripts/build-schemas.ts (:841, :848, :1039, :2690), each folding entries into a map or a flat list, where an empty array contributes nothing; the root scripts/measure-partial-retirement-annotation.mjs parses the table body as text and likewise finds no entry in an empty region. No src module of any package, ui/ included, reads either table; the test readers index [17] or [18], flatten, or loop the entries.
  • Build-time accept set of gen:migration-registry: widened on purpose. Right. renderRegistry (build-migration-registry.ts) refuses an entry whose kind:major has no marked region. 19.*.ts files under entries/retired-keys/ and entries/retired-defs/ were refused on every tree and are now concatenated. This matches semantic:19, open since the protocol move. An entry registered under 19 while the package is still 18.x cannot age out early: the deletion gate (build-schemas.ts:2973) computes 18 - 19, which is below the one-major age.
  • New red: the pin. Any tree on which a kind in KINDS lacks an open or close marker for the spec package major or for PROTOCOL_MAJOR now fails build-migration-registry-entry.test.ts, in the spec local project that Test Core runs. Right; judged in ④.
  • Runtime: no product change. Right. clientSpecVersionVerdict (mcp-authoring.ts:203) already validates with SEMVER_2_0_0_VERSION_PATTERN and compares only the first two dot fields of each side, which sit before any prerelease hyphen. The test now parses the way the door validates; the new case pins that a prerelease client saves against the same major and minor.
  • UI: the KNOWN_CLAIMS row follows the spec package major. Right. That is the value scripts/check-skill-compatibility-version.mjs --fix writes into the skill's pin in the version step, so the row and the literal move together.

② Semver level

  • .changeset/37549-retired-key-19-region.md grades @objectstack/spec patch with Metadata-protocol: none. That matches what the diff publishes: the template renders into the registry module the ./migrations entry ships, and the only shipped difference is two empty keyed arrays. Nothing an author writes against is added, narrowed or changed in meaning, so the level axis gives patch.
  • The Clause-②: no line on the PR body and on the changeset holds: no accept-set narrowing, no new required member, no removed export.
  • No changeset is owed for @objectstack/runtime: its manifest publishes dist, README.md and CHANGELOG.md, and the one runtime file in the diff is a test. ui/scripts/__tests__/ is unpublished. Both Check Changeset runs concluded success.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

registry.ts.template. The contract is the generator's refusal plus the gate's prescription. build-schemas.ts:769 reads CURRENT_MAJOR from the spec package version with Number.parseInt, which gives 19 for 19.0.0-next.0. renderNewEntryFiles (:828) names every new entry file under that major for BOTH kinds: retired-key at :1223, retired-def at :883 and :2800. The generator then requires a kind:major region for each. The new markers at template lines 3907 to 3908 and 4046 to 4047 are spelled exactly as the generator's open pattern and closeMarker read them (four spaces, the same comment form as the major-18 siblings), and each sits inside its own table before the closing brace that the check-mode fixtures anchor on. The failing case on #35129 writes the file names check (b) prints into a sandbox copy and runs the sandbox's generator; with retired-key:19 present the refusal it hit has no path left.

  • retired-def:19 in place: justified. Same root cause through the same function, same file, no behaviour. It stayed latent only because the def-side check-mode tests seed the table by substitution and never run the generator on a 19.* def file; the first whole-def removal on the 19 tree would have met the identical refusal. The pin, uniform over KINDS, also could not go green without it.
  • The two new template comments state what the code does: PROTOCOL_VERSION reads 19, check:authorable-surface is build-schemas.ts --check, and the manifest deletion gate prescribes under the package major.
  • Limit of the evidence. Every check-run on this head ran with the package at 18.6.0, so none exercised the 19 tree. The 19-tree result rests on the static reading above and on the dev's uncommitted local run in the report; the real witness is chore: version packages (next) #35129 once it is refreshed onto a main that carries this.

build-migration-registry-entry.test.ts (the pin). Tried against four trees:

  • main before the fix (package 18, protocol 19): requires 18 and 19 for three kinds; retired-key:19 and retired-def:19 are absent at the merge-base, so two cases red. Agrees with the dev's ablation.
  • This head: all six regions present, green (Test Core success).
  • The Version tree (package 19, protocol 19): the set collapses to 19 alone, green. "Package major plus one" would demand 20 there and red the release tree, and a semantic:20 region cannot be opened ahead of time without a step20 in MIGRATIONS_BY_MAJOR, which is behaviour. The dev's choice of PROTOCOL_MAJOR is the right second major.
  • The next major: PROTOCOL_VERSION moves to 20 in an ordinary PR while the package is 19.x (the ruled route, admitted by check-changeset-no-major.mjs in pre mode with a pending major). The pin reds that PR until all three major-20 regions exist. That is the card's "fails on main when PROTOCOL_VERSION's major has no region".

The import of ./build-migration-registry runs nothing (the invokedDirectly guard, pinned by the first describe of the same file). The package-major read is the same expression as build-schemas.ts:769. The "reads two real majors" case stops a NaN major from passing vacuously.

  • N1 (nit) — the pin's lead on the next major exists only on the route where the protocol constant moves first. scripts/sync-protocol-version.mjs still moves the constant inside the version pass when it has not moved; on that route both majors change together and the missing region first reds on the Version tree, as it did here, though now with a message naming the region. The changeset's "caught on main rather than on the Version PR" is true of the ruled route only. Accepted deviation: no second major covers the sync route without opening a step early (see the release.yml note below for the route that would).
  • N2 (nit) — the pin spells the open and close marker lines itself, a second copy of the shape renderRegistry reads. Today the two agree and a drift could only red falsely. Driving renderRegistry over the template with one synthetic entry per kind and major would make the generator the judge. Accepted deviation.

Out of the diff, read and not reviewed:

  • .github/workflows/release.yml:825 — the post-version validation renders the post-version tree on a schedule and runs a fixed gate list; from the spec package it runs protocol-version.test.ts alone. All three of this card's failures are red only on that tree and none of their files is in the list, the new pin included. Adding the pin (one file, no build) there would cover the sync route N1 names. A follow-up card for the lane, not a change to this head.
  • mcp-authoring.ts:206 — the non-SemVer refusal text carries the literal example 18.6.0; on the 19 line it names the previous major.
  • build-schemas.ts:769 — on main today the gate prescribes 18.* entry names while PROTOCOL_VERSION reads 19 and the 19 regions are open. Which major a retirement merged in this window belongs to is decided there; this PR does not change it.
  • doc-version-claims.test.ts (remainder) — workspaceRoot() returns the objectui root in the standalone layout, where packages/spec/package.json does not exist, so the new module-scope read would throw there. The row it serves already presumes the monorepo (the skill lives in the root skills/).

Implemented-by: claude/project-thread-sylqxb-i37549
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 0e5473f · card #37549 (p0, release-blocker for Version PR #35129) · 2026-11-26T14:19Z

L1 checklist

  • Shape and relation: l1-face.mjs --pr 37557 flagged one item, the changeset row for @objectstack/runtime, and it is answered here. The one runtime file is a test, and the package publishes dist, README.md and CHANGELOG.md only, so no runtime entry is owed. At 0e5473f there are 61 success, 12 expected skips, 0 failed and 0 pending, and mergeable_state is clean. 113 changed lines, not governed.
  • Fixes #37549 is right. The card's scope grew to three items (amend on the card), and all three ride here:
    • ① the major-19 retired-key region in the migration registry template, with retired-def:19 added in place because renderNewEntryFiles prescribes both kinds under the package major;
    • ② the [#34774] MCP save test parses SERVER with the SemVer 2.0.0 grammar instead of split('.'), plus a new case for a prerelease and the server's own version;
    • ③ the objectui pin row in doc-version-claims.test.ts is keyed on SPEC_MAJOR read from the spec manifest.
  • Scope: 5 files, all on the card: the template, its pin in build-migration-registry-entry.test.ts, the two test files, and a @objectstack/spec patch changeset. skills/** is untouched, because the root skill-compatibility check requires the literal pin, so the PR stays off Tier H.
  • PR body: the dev's open question (the body covered item 1 only) was answered by the seat's body rewrite at 14:08Z. The title and the body now cover all three items.
  • Evidence: the dev ran items ① to ③ on a temporary 19.0.0-next.0 version tree (not committed) and got runtime 57/57, ui 29/29 and spec 20/20. Ablated with the main versions of the tests, runtime goes red 1 and ui red 2, matching chore: version packages (next) #35129's failures. The pin is red on the pre-fix template. Every check-run here ran at 18.6.0, so the real witness for the 19 tree is chore: version packages (next) #35129 once refreshed onto a main carrying this.
  • Sentence-by-sentence read of the changeset: its three sentences match the template hunks and the pin. "Caught on main" holds on the ruled route (PROTOCOL_VERSION moves first); that limit is L2's N1.
  • L2: the Contract review record 7194561170 at CONTRACT_REVIEW_TIER on this head is a PASS with no must-fix and no should-fix. N1 (the sync-script route still reds first on the Version tree) and N2 (the pin spells the marker lines itself) are accepted deviations. L2's out-of-diff notes go to one review follow-ups of PR #37557 card.
  • Overlap: feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371 now edits the same template (its step19 block), more than 150 lines from these hunks, so either merge order is textually clean.

Tier: S. Landing: ready + auto-merge by this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 14:19
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants